using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArrayTest
{
    class Program
    {
        static void Main(string[] args)
        {

            int[] myArr = new int[] { 12,36,35,4,24,26};


            object[] myob = new object[myArr.Length];

            for(int i = 0; i < myob.Length; i++)
            {
                myob[i] =myArr[i];
            }

            Console.WriteLine("输出数组中的内容");
            Console.WriteLine(myob.OutArray());



            string[,] strArr = new string[,]
            {
                {"001","李四","28班"},
                {"002","赵六","14班"},
                {"003","老张","6班"},
                {"004","李华","1班"},
            };

            Console.WriteLine("输出数组中的内容");
            Console.WriteLine(strArr.OutArray());




            //Split的用法
           
            string mystr = "春风一吹想起谁，有所谓无所谓，只要不后悔";

            object[] ob = mystr.Split('，');



            Console.WriteLine(ob.OutArray());



            object[] obj = mystr.Split(new char[] { '所', '，' });

            Console.WriteLine(obj.OutArray());

            Console.ReadKey();

        }
    }
}
